package cn.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 失信人
 * </p>
 *
 * @author stylefeng
 * @since 2020-07-18
 */
@TableName("dishonest_person")
public class Person extends Model<Person> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 单位名称/姓名
     */
    private String name;
    /**
     * 案件号
     */
    @TableField("case_number")
    private String caseNumber;
    /**
     * 证件号
     */
    @TableField("identification_number")
    private String identificationNumber;
    /**
     * 年龄
     */
    private String age;
    /**
     * 地址
     */
    private String address;
    /**
     * 未履行金额
     */
    @TableField("outstanding_amount")
    private String outstandingAmount;
    /**
     * 图片地址
     */
    @TableField("img_url")
    private String imgUrl;
    /**
     * 区域
     */
    private String region;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCaseNumber() {
        return caseNumber;
    }

    public void setCaseNumber(String caseNumber) {
        this.caseNumber = caseNumber;
    }

    public String getIdentificationNumber() {
        return identificationNumber;
    }

    public void setIdentificationNumber(String identificationNumber) {
        this.identificationNumber = identificationNumber;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getOutstandingAmount() {
        return outstandingAmount;
    }

    public void setOutstandingAmount(String outstandingAmount) {
        this.outstandingAmount = outstandingAmount;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Person{" +
        ", id=" + id +
        ", name=" + name +
        ", caseNumber=" + caseNumber +
        ", identificationNumber=" + identificationNumber +
        ", age=" + age +
        ", address=" + address +
        ", outstandingAmount=" + outstandingAmount +
        ", imgUrl=" + imgUrl +
        ", region=" + region +
        "}";
    }
}
